repo: Port object listing func to use libglnx more + new style
authorColin Walters <walters@verbum.org>
Tue, 25 Apr 2017 15:37:16 +0000 (11:37 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 25 Apr 2017 20:01:13 +0000 (20:01 +0000)
commit8d58ab1002cbc4a1ecafe3d1a80984f8a60f41e9
tree765c1ea14bac443492fc54fa81e2201b9b8d032a
parente8efd1c8dcaad8fbd3b05c400972d237406263e7
repo: Port object listing func to use libglnx more + new style

This did a `closedir` in the `goto out` section before, but it
turns out more nicely if we follow the usual pattern of doing
the `open(O_DIRECTORY)` in the callee function and handle `ENOENT`
there.

Closes: #809
Approved by: jlebon
src/libostree/ostree-repo.c